package com.space.school.service.impl;

import com.space.school.dao.MasterDao;
import com.space.school.dao.OITDao;
import com.space.school.dao.impl.MasterDaoImpl;
import com.space.school.dao.impl.OITDaoImpl;
import com.space.school.domain.Master;
import com.space.school.service.OITService;

import java.util.List;

public class OITServiceImpl implements OITService {

    private OITDao oitDao=new OITDaoImpl();

    private MasterDao masterDao=new MasterDaoImpl();

    @Override
    public List<Master> findAll() {
        return oitDao.findAll();
    }

    @Override
    public void delete(String order_id) {
        oitDao.delete(order_id);
    }

    @Override
    public List<Master> findByOrder_id(String order_id) {
        return oitDao.findByOrder_id(order_id);
    }

    @Override
    public void update(Master master) {
        masterDao.update(master);
    }

    @Override
    public void finished(String order_id) {
        masterDao.finished(order_id);
    }

    @Override
    public void finished_pay(String order_id) {
        masterDao.finished_pay(order_id);
    }
}
